package com.gqz.patrol.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gqz.common.core.domain.RequestForm;
import com.gqz.patrol.entity.EnPatrolTaskElectricityEntity;
import com.gqz.patrol.vo.EnPatrolTaskElectricityVo;
import jakarta.servlet.http.HttpServletResponse;

import java.util.List;


/**
 * 电量采集信息表
 */
public interface IEnPatrolTaskElectricityService extends IService<EnPatrolTaskElectricityEntity> {

    List<EnPatrolTaskElectricityVo> getById(String id);

    Page<EnPatrolTaskElectricityVo> page(RequestForm<EnPatrolTaskElectricityVo> requestForm);

    Long count(RequestForm<EnPatrolTaskElectricityVo> requestForm);

    int insert(List<EnPatrolTaskElectricityVo> forms);

    int update(List<EnPatrolTaskElectricityVo> forms);

    /**
     * 根据工单的编号获取电量采集信息
     *
     * @param taskNo
     * @return
     */
    List<EnPatrolTaskElectricityVo> getByTaskNo(String taskNo);

    /**
     * 导出电能表采集Excel
     *
     * @param resp
     * @param requestForm
     */
    void exportExcel(HttpServletResponse resp, RequestForm<EnPatrolTaskElectricityVo> requestForm);
}
